<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;


Route::get('/','index/index/index');

/*用户user路由
*/
Route::post('/:version/user/register','api/:version.User/register');
Route::post('/:version/user/login','api/:version.User/login');
Route::post('/:version/user/findPassword','api/:version.user/findPassword');
Route::post('/:version/user/changePassword','api/:version.user/change_password');


Route::post('/:version/manager/add','api/:version.User/addc');
Route::post('/:version/manager/del','api/:version.User/delc');
Route::get('/:version/manager/list','api/:version.User/listc');
Route::post('/:version/manager/userAssign','api/:version.User/user_assign_group');

/*规则路由
*/
Route::post('/:version/rule/add','api/:version.Rule/addc');
Route::post('/:version/rule/update','api/:version.Rule/updatec');
Route::post('/:version/rule/del','api/:version.Rule/delc');
Route::get('/:version/rule/list','api/:version.Rule/listc');

/*组别路由
*/
Route::post('/:version/group/add','api/:version.Group/addc');
Route::post('/:version/group/update','api/:version.Group/updatec');
Route::post('/:version/group/del','api/:version.Group/delc');
Route::get('/:version/group/list','api/:version.Group/listc');
//用户组的规则设置路由
Route::post('/:version/group/assignRule','api/:version.Group/assign_rule');
Route::post('/:version/group/groupAddUser','api/:version.Group/group_add_user');
Route::post('/:version/group/groupdelUser','api/:version.Group/group_del_user');





/**辅助类*/
Route::post('/:version/tools/sendEmailCode','api/:version.User/sendEmailCode');
Route::post('/:version/tools/checkEmailCode','api/:version.User/checkEmailCode');
Route::get('/:version/tools/showVerify','api/:version.Tools/show_verify');